package com.nchu.commondevelopmentframework.service;

import com.nchu.commondevelopmentframework.service.base.BaseService;

import java.util.List;

/**
 * @InterfaceName: MapperService
 * @description: 菜单实体类Service
 * @author: Li Chuanwei
 * @date: 2024/02/20 14:02
 **/
public interface MenuService<Menu> extends BaseService<Menu> {
    /**
     * 根据用户ID查询菜单
     *
     * @param userId 用户Id
     * @return 菜单列表
     */
    List<Menu> selectMenusByUser(Long userId);

    /**
     * 查询全部菜单
     *
     * @return 全部菜单列表
     */
    List<Menu> selectAllMenus();
}
